package com.znsd.stu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znsd.entitys.TimeTable;
import com.znsd.stu.dao.Cwj_TimeTableDao;
import com.znsd.stu.service.Cwj_TimeTableService;
@Service
public class Cwj_TimeTableServiceImpl implements Cwj_TimeTableService{
	@Autowired
	private Cwj_TimeTableDao timeDao;
	
	@Override
	public List<TimeTable> getAll(Integer userId) {
		// TODO Auto-generated method stub
		return timeDao.getAll(userId);
	}

	@Override
	public int getcount(Integer userId) {
		// TODO Auto-generated method stub
		return timeDao.getcount(userId);
	}

	@Override
	public TimeTable getById(Integer id) {
		// TODO Auto-generated method stub
		return timeDao.getById(id);
	}

	@Override
	public void updatetime(String uptime, String breaktime, String Latetime, String ontime, String offtime,
			Integer tid) {
		// TODO Auto-generated method stub
		timeDao.updatetime(uptime, breaktime, Latetime, ontime, offtime, tid);
	}

	@Override
	public void addtime(String uptime, String breaktime, String Latetime, String ontime, String offtime,
			Integer classId, Integer userId) {
		// TODO Auto-generated method stub
		timeDao.addtime(uptime, breaktime, Latetime, ontime, offtime, classId, userId);
	}

	@Override
	public void deletetime(Integer classId) {
		// TODO Auto-generated method stub
		timeDao.deletetime(classId);
	}
	
}
